package cn.com.adcc.utils;

import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.zeroturnaround.zip.ZipUtil;

import java.io.File;

/**
 * Created by anzilu on 2015/10/27.
 */
public class ZTZip {


    public static void main(String[] args){

        DateTime startcomp=new DateTime(DateTimeZone.UTC);
        ZipUtil.pack(new File("D:\\MSVS2013"),new File("D:\\MSVS2013.zip"));
        DateTime stopcomp=new DateTime(DateTimeZone.UTC);
        long cost=stopcomp.getMillis()-startcomp.getMillis();
        System.out.println(cost);
        System.out.println(1.93*1024/cost);
        //24M/S
    }

}
